<?php
require_once 'core/base/BaseApp.php';
require_once 'core/base/Controller.php';
require_once 'core/app/AppController.php';
require_once 'core/base/BaseModel.php';
require_once 'core/app/AppModel.php';
require_once 'core/app/AppMsg.php';

require_once 'adodb/adodb.inc.php';
require_once 'phpmailer/class.phpmailer.php';

require_once 'eleontev/Assorted.inc.php';
require_once 'eleontev/HTML/tplTemplatez.php';
require_once 'eleontev/Util/TreeHelper.php';

require_once APP_CLIENT_DIR . 'client/inc/KBClientController.php';

require_once APP_ROOT_DIR . 'cron/CronCommon.php';
require_once APP_ROOT_DIR . 'cron/FileManipulator.php';


$db = &DBUtil::connect($conf);

$reg =& Registry::instance();
$reg->setEntry('db', $db);
$reg->setEntry('tbl_pref', $conf['tbl_pref']);
$reg->setEntry('conf', $conf);
?>